﻿@model ExtendedAttributeValueModel

@Html.ValidationSummary(false)
@Html.HiddenFor(model => model.Id)
@Html.HiddenFor(model => model.ExtendedAttributeId)

@if (ViewBag.RefreshPage == true)
{
    <script type="text/javascript">
        try {window.opener.document.forms['@(ViewBag.formId)'].@(ViewBag.btnId).click();}

        catch (e){}
        window.close();
    </script>
}
@(Html.LocalizedEditor<ExtendedAttributeValueModel, ExtendedAttributeValueLocalizedModel>("extendedattributevalue-localized",
    @<div class="form-body">
        <div class="form-group">
            <label class="control-label col-md-3">
                @Html.LangLabelFor(model => model.Locales[item].Name)
            </label>
            <div class="col-md-4">
                @Html.EditorFor(model => Model.Locales[item].Name)
                @Html.ValidationMessageFor(model => model.Locales[item].Name)
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-md-3">

            </label>
            <div class="col-md-4">
                @Html.HiddenFor(model => model.Locales[item].LanguageId)
            </div>
        </div>
    </div>
        ,
        @<div class="form-body">
            <div class="form-group">
                <label class="control-label col-md-3">
                    @Html.LangLabelFor(model => model.Name)
                </label>
                <div class="col-md-4">
                    @Html.EditorFor(model => model.Name)
                    @Html.ValidationMessageFor(model => model.Name)
                </div>
            </div>
        </div>
                                                                                                                                        ))
<div class="form-body">
    <div class="form-group">
        <label class="control-label col-md-3">
            @Html.LangLabelFor(model => model.IsPreSelected)
        </label>
        <div class="col-md-4">
            @Html.EditorFor(model => model.IsPreSelected)
            @Html.ValidationMessageFor(model => model.IsPreSelected)
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-md-3">
            @Html.LangLabelFor(model => model.DisplayOrder)
        </label>
        <div class="col-md-4">
            @Html.EditorFor(model => model.DisplayOrder)
            @Html.ValidationMessageFor(model => model.DisplayOrder)
        </div>
    </div>
</div>
